Stéphane Raimbault [Sat, 10 Feb 2007 09:34:38 +0000 (09:34 +0000)]
Updated French translation by Jonathan Ernst and Stéphane Raimbault
2007-02-09 Stéphane Raimbault <stephane.raimbault@gmail.com>
* fr.po: Updated French translation by Jonathan Ernst and Stéphane
Raimbault (added bug report #406160).
svn path=/trunk/; revision=17283
Emmanuele Bassi [Fri, 9 Feb 2007 14:24:19 +0000 (14:24 +0000)]
Add support for both prepending and appending custom menu items.
2007-02-09 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentchoosermenu.c: Add support for both prepending
and appending custom menu items.
(gtk_recent_chooser_menu_constructor): Add a placeholder menu
item for the empty menu case, and for giving us a starting
point for the recent items populating process.
(gtk_recent_chooser_menu_insert_item),
(gtk_recent_chooser_menu_dispose_items): Insert an item at
the position following the placeholder (and find that position
if needed).
(idle_populate_func), (idle_populate_clean_up): Show the
placeholder menu item, instead of creating one each time.
(gtk_recent_chooser_menu_populate): Kill some indirections
and hide the placeholder before populating the menu.
(set_recent_manager): Remember to remove the idle population
source if the manager changes.
* tests/testrecentchoosermenu.c: Test the appending and
prepending of the menu items to the recent chooser menu
widget.
svn path=/trunk/; revision=17281
David Lodge [Fri, 9 Feb 2007 11:24:44 +0000 (11:24 +0000)]
Updated (British) English translation
svn path=/trunk/; revision=17279
Emmanuele Bassi [Thu, 8 Feb 2007 14:22:20 +0000 (14:22 +0000)]
Keep count of the displayed items to build the menu items mnemonic instead
2007-02-08 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentchoosermenu.c (idle_populate_func): Keep count
of the displayed items to build the menu items mnemonic instead
of the overall item count. (#377164)
(idle_populate_clean_up): Append a menu item if all the items
got filtered in the idle populate function. (#405696)
svn path=/trunk/; revision=17277
Tim Janik [Thu, 8 Feb 2007 12:11:02 +0000 (12:11 +0000)]
applied patch from Xan Lopez which adds GTK_BUTTONBOX_CENTER to
Thu Feb 8 13:07:08 2007 Tim Janik <timj@imendio.com>
* applied patch from Xan Lopez which adds GTK_BUTTONBOX_CENTER to
GtkButtonBox (bug #336159).
* gtk/gtkenums.h:
* gtk/gtkvbbox.c, gtk/gtkhbbox.c, gtk/gtkbbox.c:
support GTK_BUTTONBOX_CENTER.
* tests/testbbox.c: new button box test, which allows testing of
the various button box properties.
* tests/testgtk.c: added GTK_BUTTONBOX_CENTER. to button box test.
svn path=/trunk/; revision=17276
Cody Russell [Wed, 7 Feb 2007 20:33:46 +0000 (20:33 +0000)]
Add gdk_event_request_motions
2007-02-07 Cody Russell <bratsche@gnome.org>
* gdk/gdk.symbols: Add gdk_event_request_motions
svn path=/trunk/; revision=17275
Tim Janik [Wed, 7 Feb 2007 18:09:35 +0000 (18:09 +0000)]
fixed motion request condition which was wrongly ported with my last
Wed Feb 7 19:03:28 2007 Tim Janik <timj@gtk.org>
* gtk/gtkentry.c (gtk_entry_motion_notify): fixed motion request
condition which was wrongly ported with my last commit.
svn path=/trunk/; revision=17274
Chris Wilson [Wed, 7 Feb 2007 14:47:36 +0000 (14:47 +0000)]
Set the GError if the image is zero length. (#405327)
2007-02-07 Chris Wilson <chris@chris-wilson.co.uk>
* io-jpeg.c: (gdk_pixbuf__jpeg_image_load),
(gdk_pixbuf__jpeg_image_load_increment): Set the GError
if the image is zero length. (#405327)
svn path=/trunk/; revision=17272
Tim Janik [Tue, 6 Feb 2007 15:02:59 +0000 (15:02 +0000)]
fixed typo
svn path=/trunk/; revision=17270
Tim Janik [Tue, 6 Feb 2007 14:53:35 +0000 (14:53 +0000)]
call gdk_event_request_motions() for new motion events after receiving
Tue Feb 6 15:53:59 2007 Tim Janik <timj@imendio.com>
* gtk/gtktextview.c (gtk_text_view_motion_event):
* gtk/gtkspinbutton.c (gtk_spin_button_motion_notify):
* gtk/gtkaboutdialog.c (credits_motion_notify_event):
* gtk/gtkhruler.c (gtk_hruler_motion_notify):
* gtk/gtkvruler.c (gtk_vruler_motion_notify):
* gtk/gtkentry.c (gtk_entry_motion_notify):
* gtk/gtktooltip.c (_gtk_tooltip_handle_event):
* gtk/gtkhsv.c (gtk_hsv_motion): call gdk_event_request_motions()
for new motion events after receiving motion hints.
* gdk/gdkevents.[hc]: added gdk_event_request_motions().
svn path=/trunk/; revision=17269
Matthias Clasen [Tue, 6 Feb 2007 13:56:06 +0000 (13:56 +0000)]
Protect against stop_load begin broken. (#403255, Lucas Mazzardo Veloso)
2007-02-06 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf-loader.c (gdk_pixbuf_loader_close): Protect
against stop_load begin broken. (#403255, Lucas Mazzardo Veloso)
svn path=/trunk/; revision=17267
Kristian Rietveld [Tue, 6 Feb 2007 13:13:19 +0000 (13:13 +0000)]
remove unused get of has_tooltip.
2007-02-06 Kristian Rietveld <kris@imendio.com>
* gtk/gtktooltip.c (find_topmost_widget_coords_from_event):
remove unused get of has_tooltip.
* tests/testtooltips.c (query_tooltip_tree_view_cb): use the
portable g_snprintf instead of snprintf.
svn path=/trunk/; revision=17266
Michael Natterer [Tue, 6 Feb 2007 12:11:33 +0000 (12:11 +0000)]
chain up.
2007-02-06 Michael Natterer <mitch@imendio.com>
* gtk/gtktooltip.c (gtk_tooltip_finalize): chain up.
(gtk_tooltip_show_tooltip): move variables and code to local
scope. Fixes warnings about maybe uninitialized variables.
svn path=/trunk/; revision=17265
Kristian Rietveld [Tue, 6 Feb 2007 10:25:21 +0000 (10:25 +0000)]
New tooltips API.
2007-02-06 Kristian Rietveld <kris@imendio.com>
New tooltips API.
* gtk/Makefile.am
* gtk/gtk.h
* gtk/gtk.symbols: build system foo.
* gtk/gtkmain.c (gtk_main_do_event): call tooltip event handler
hook for appropriate events.
* gtk/gtkmarshalers.list: add BOOLEAN:INT,INT,BOOLEAN,OBJECT.
* gtk/gtkrc.c: add style for gtk-tooltip.
* gtk/gtksettings.c (gtk_settings_class_init): make the
different tooltip timeouts configurable.
* gtk/gtkwidget.[ch]: add new properties, signals, make sure
tooltips are hidden on unmap, destroy, update window event
mask on realize, hook into focus change and show help
handlers.
* gtk/gtkwindow.h: move GtkWindow typdef to gtkwidget.h ...
* gtk/gtktooltip.[ch]: new files.
* tests/Makefile.am
* tests/testtooltips.c: add test application.
svn path=/trunk/; revision=17264
Dom Lachowicz [Mon, 5 Feb 2007 14:30:06 +0000 (14:30 +0000)]
Fix bug 404506, caused by prematurely releasing a DC. By Hiroyuki Yamamoto
2007-02-05 Dom Lachowicz <domlachowicz@gmail.com>
* modules/engines/ms-windows/msw_style.c: Fix bug 404506, caused
by prematurely releasing a DC. By Hiroyuki Yamamoto
* modules/engines/ms-windows/msw_style.c: Fix bug 403470 - leaking
pixbufs when drawing rotated tabs. By Daniel Atallah
svn path=/trunk/; revision=17263
Michael Natterer [Mon, 5 Feb 2007 14:11:39 +0000 (14:11 +0000)]
add new boolean settings gtk-enable-accels and gtk-enable-mnemonics which
2007-02-05 Michael Natterer <mitch@imendio.com>
* gtk/gtksettings.c: add new boolean settings gtk-enable-accels
and gtk-enable-mnemonics which enable/disable accelerators and
mnemonics (bug #72375, based on a patch from Tommi Komulainen).
* gtk/gtkwindow.c (gtk_window_activate_key)
* gtk/gtkmenushell.c (gtk_menu_shell_key_press): don't invoke them
if the resp. setting is FALSE.
* gtk/gtkaccellabel.c (gtk_accel_label_refetch)
* gtk/gtklabel.c (gtk_label_set_pattern_internal): don't display
them if the setting is FALSE.
* gtk/gtklabel.c: added signal connection to the screen's settings
object and traverse all widgets on the screen when the setting
changes. It's slightly ugly to also update GtkAccelLabels here,
but less ugly than connecting and traversing all widgets twice.
svn path=/trunk/; revision=17262
Michael Natterer [Mon, 5 Feb 2007 10:36:27 +0000 (10:36 +0000)]
changed values from G_MAXUINT-0, -1, -2 to -1, -2, -3 so we stay within
2007-02-05 Michael Natterer <mitch@imendio.com>
* gtk/gtktextbuffer.h (enum GtkTextBufferTargetInfo): changed
values from G_MAXUINT-0, -1, -2 to -1, -2, -3 so we stay within
ansi C enum value limits. Fixes bug #46757.
svn path=/trunk/; revision=17260
Soren Sandmann [Sun, 4 Feb 2007 01:28:38 +0000 (01:28 +0000)]
Remove these files since GSequence has been moved into GLib.
2007-02-03 Soren Sandmann <sandmann@daimi.au.dk>
* gtk/gtksequence.[ch]: Remove these files since GSequence has
been moved into GLib.
* gtk/gtkliststore.c: Port to GSequence instead of GtkSequence.
* configure.in: Require glib-2.13.0
svn path=/trunk/; revision=17259
Tor Lillqvist [Sun, 4 Feb 2007 00:32:52 +0000 (00:32 +0000)]
Nitpick. Define BITMAPV5HEADERS also for w32api < 3.0, although I have
no idea whether gdk/win32 would build with such an old beast.
svn path=/trunk/; revision=17258
Tor Lillqvist [Sun, 4 Feb 2007 00:19:53 +0000 (00:19 +0000)]
Don't define BITMAPV5HEADER on mingw with w32api >= 3.8, which has it in
2007-02-04 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkcursor-win32.c: Don't define BITMAPV5HEADER on
mingw with w32api >= 3.8, which has it in wingdi.h. (#403896)
svn path=/trunk/; revision=17256
Kristian Rietveld [Fri, 2 Feb 2007 20:37:02 +0000 (20:37 +0000)]
remove unused style_get of vertical-separator. (#403165, Chris Wilson).
2007-02-02 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_row_changed): remove unused
style_get of vertical-separator. (#403165, Chris Wilson).
svn path=/trunk/; revision=17252
Christian Persch [Fri, 2 Feb 2007 19:07:39 +0000 (19:07 +0000)]
Use a simple key file instead of a markup file. Bug #399592.
2007-02-02 Christian Persch <chpe@svn.gnome.org>
* gtk/gtkfilechoosersettings.c: (get_config_filename),
(ensure_settings_read), (_gtk_file_chooser_settings_init),
(_gtk_file_chooser_settings_set_show_hidden),
(_gtk_file_chooser_settings_set_expand_folders),
(_gtk_file_chooser_settings_save): Use a simple key file instead of a
markup file. Bug #399592.
svn path=/trunk/; revision=17251
Mariano Suárez-Alvarez [Fri, 2 Feb 2007 03:50:46 +0000 (03:50 +0000)]
be a little more helpful with the docs on GtkCellRendererText:alignment.
2007-02-02 Mariano Suárez-Alvarez <mariano@gnome.org>
* gtk/gtkcellrenderertext.c(gtk_cell_renderer_text_class_init):
be a little more helpful with the docs on GtkCellRendererText:alignment.
Bug #403409.
svn path=/trunk/; revision=17250
Michael Natterer [Thu, 1 Feb 2007 19:47:29 +0000 (19:47 +0000)]
pass &event->area to gtk_paint_box() calls.
2007-02-01 Michael Natterer <mitch@imendio.com>
* gtk/gtkmenu.c (gtk_menu_paint): pass &event->area to
gtk_paint_box() calls.
svn path=/trunk/; revision=17248
Michael Natterer [Thu, 1 Feb 2007 13:57:36 +0000 (13:57 +0000)]
remove redundant and confusing if (GTK_IS_MENU (widget)) checks because
2007-02-01 Michael Natterer <mitch@imendio.com>
* gtk/gtkmenu.c (gtk_menu_button_press)
(gtk_menu_button_release)
(gtk_menu_button_scroll): remove redundant and confusing
if (GTK_IS_MENU (widget)) checks because "widget" is always a
GtkMenu here.
svn path=/trunk/; revision=17247
Tim Janik [Thu, 1 Feb 2007 11:42:38 +0000 (11:42 +0000)]
remove extra reference that gtkcombobox keeps on priv->popup_widget if
Thu Feb 1 12:22:06 2007 Tim Janik <timj@imendio.com>
* gtk/gtkcombobox.c (gtk_combo_box_list_destroy): remove extra reference
that gtkcombobox keeps on priv->popup_widget if it's a tree view.
svn path=/trunk/; revision=17246
Christian Persch [Wed, 31 Jan 2007 18:40:32 +0000 (18:40 +0000)]
Hide the Credits button iff there are no credits to show. Bug #402806.
2007-01-31 Christian Persch <chpe@svn.gnome.org>
* gtk/gtkaboutdialog.c: (update_credits_button_visibility),
(gtk_about_dialog_set_authors), (gtk_about_dialog_set_documenters),
(gtk_about_dialog_set_artists),
(gtk_about_dialog_set_translator_credits): Hide the Credits button iff
there are no credits to show. Bug #402806.
svn path=/trunk/; revision=17242
Tor Lillqvist [Tue, 30 Jan 2007 23:49:39 +0000 (23:49 +0000)]
New debugging function. (_gdk_input_wintab_init_check): Call it when
2007-01-31 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkinput-win32.c (print_cursor): New debugging
function.
(_gdk_input_wintab_init_check): Call it when debugging output is
requested.
(_gdk_input_wintab_init_check): Skip duplicated cursors for Wacom
tablets. The Wacom driver reports duplicated cursors with
physid==0. Fix verified by Robert *gren. (Should be U+00D6
there, but svn won't let me.)
svn path=/trunk/; revision=17241
Felix Riemann [Tue, 30 Jan 2007 20:19:11 +0000 (20:19 +0000)]
Fix leaked string. Fixes bug #402565.
2007-01-30 Felix Riemann <friemann@svn.gnome.org>
* modules/printbackends/file/gtkprintbackendfile.c:
(file_printer_get_options): Fix leaked string. Fixes bug #402565.
svn path=/trunk/; revision=17238
Matthias Clasen [Tue, 30 Jan 2007 18:36:44 +0000 (18:36 +0000)]
Be more careful about toplevel possibly being NULL. (#402453, Sebastian
2007-01-30 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkwindow-x11.c (gdk_x11_window_move_to_current_desktop):
(gdk_x11_window_set_user_time): Be more careful about toplevel
possibly being NULL. (#402453, Sebastian Bacher)
svn path=/trunk/; revision=17236
Tim Janik [Tue, 30 Jan 2007 11:10:22 +0000 (11:10 +0000)]
cleaned up ::color-hash registration to not abuse class_n_properties and
Tue Jan 30 12:09:56 2007 Tim Janik <timj@gtk.org>
* gtk/gtksettings.c: cleaned up ::color-hash registration to not abuse
class_n_properties and leave an uninitialized value array behind.
svn path=/trunk/; revision=17235
Michael Natterer [Mon, 29 Jan 2007 15:45:18 +0000 (15:45 +0000)]
queue a draw on the parent_menu_item of this menu item's menu, to enable
2007-01-29 Michael Natterer <mitch@imendio.com>
* gtk/gtkmenuitem.c (gtk_menu_item_select)
(gtk_menu_item_deselect): queue a draw on the parent_menu_item of
this menu item's menu, to enable themeing menu items depending on
whether something is selected in their submenu (patch taken from
maemo-gtk).
svn path=/trunk/; revision=17234
Matthias Clasen [Mon, 29 Jan 2007 03:24:09 +0000 (03:24 +0000)]
Reinstate gtk_toolbar_content_new_compatibility() that was mistakenly
2007-01-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktoolbar.c: Reinstate gtk_toolbar_content_new_compatibility()
that was mistakenly "cleaned up" a while ago. Also
revert a problematic change to the screen_changed
handler. (#401598, Søren Sandmann)
svn path=/trunk/; revision=17232
Matthias Clasen [Sun, 28 Jan 2007 06:32:12 +0000 (06:32 +0000)]
Fix a problem with large y thickness
svn path=/trunk/; revision=17231
Matthias Clasen [Sun, 28 Jan 2007 05:37:27 +0000 (05:37 +0000)]
Use canonical property names
svn path=/trunk/; revision=17230
Matthias Clasen [Sun, 28 Jan 2007 04:41:52 +0000 (04:41 +0000)]
Avoid some unnecessary gtk_widget_get_style() calls.
2007-01-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtknotebook.c (gtk_notebook_draw_arrow):
(gtk_notebook_draw_focus): Avoid some unnecessary
gtk_widget_get_style() calls.
svn path=/trunk/; revision=17229
Matthias Clasen [Sun, 28 Jan 2007 03:39:46 +0000 (03:39 +0000)]
Fix a problem in the last change
svn path=/trunk/; revision=17228
Matthias Clasen [Sun, 28 Jan 2007 03:16:30 +0000 (03:16 +0000)]
Rearrange things so that setting multiple properties causes not more than
2007-01-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktoolbar.c:
* gtk/gtktoolitem.c:
* gtk/gtktoolbutton.c: Rearrange things so that setting
multiple properties causes not more than a single
reconstruction of the contents.
* gtk/gtkaction.c (connect_proxy): Set all tool button
properties in one go.
svn path=/trunk/; revision=17227
Matthias Clasen [Sat, 27 Jan 2007 05:51:19 +0000 (05:51 +0000)]
Fix GtkStatusIcon to not take up space on the panel if it is invisible.
2007-01-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkstatusicon.c:
* gtk/gtktrayicon-x11.c: Fix GtkStatusIcon to not
take up space on the panel if it is invisible. (340110, Christian
Persch)
* tests/teststatusicon.c:
* tests/Makefile.am: Updates
svn path=/trunk/; revision=17224
Matthias Clasen [Sat, 27 Jan 2007 05:34:05 +0000 (05:34 +0000)]
Add deprecation guards for gtk_rc_style_ref/unref and the old file
2007-01-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilesel.h:
* gtk/gtkrc.h:
* gtk/gtk.symbols: Add deprecation guards for gtk_rc_style_ref/unref
and the old file selector. (#348256)
svn path=/trunk/; revision=17223
Matthias Clasen [Sat, 27 Jan 2007 04:36:08 +0000 (04:36 +0000)]
Documentation fixes (#400530, Anders Brander)
2007-01-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c: Documentation fixes (#400530, Anders Brander)
svn path=/trunk/; revision=17222
Matthias Clasen [Sat, 27 Jan 2007 04:27:38 +0000 (04:27 +0000)]
Check the mtime of all directories, not just the toplevel, if ftw() is
2007-01-26 Matthias Clasen <mclasen@redhat.com>
* gtk/updateiconcache.c: Check the mtime of all directories,
not just the toplevel, if ftw() is available. (#331671, Behdad
Esfahbod)
* configure.in: Check for ftw.h.
svn path=/trunk/; revision=17221
Michael Natterer [Fri, 26 Jan 2007 23:46:37 +0000 (23:46 +0000)]
Added bug number to my last commit.
svn path=/trunk/; revision=17219
Michael Natterer [Fri, 26 Jan 2007 13:31:35 +0000 (13:31 +0000)]
destroy the XIM only if it exists. While the code does look safe in
2007-01-26 Michael Natterer <mitch@imendio.com>
* modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
destroy the XIM only if it exists. While the code does look safe
in general, there can be corner cases where the "reconnecting"
boolean being FALSE does not correspond to the XIM being
allocated (fix taken from maemo-gtk).
svn path=/trunk/; revision=17218
Tim Janik [Fri, 26 Jan 2007 12:26:01 +0000 (12:26 +0000)]
clamp cursor coordinates to window bounds (fix from Maemo Gtk).
Fri Jan 26 13:07:07 2007 Tim Janik <timj@imendio.com>
* gtk/gtkstyle.c (draw_insertion_cursor): clamp cursor coordinates to
window bounds (fix from Maemo Gtk).
svn path=/trunk/; revision=17217
Michael Natterer [Fri, 26 Jan 2007 11:39:16 +0000 (11:39 +0000)]
only block/unblock completion->priv->insert_text_id if it is actually
2007-01-26 Michael Natterer <mitch@imendio.com>
* gtk/gtkentrycompletion.c (gtk_entry_completion_insert_prefix):
only block/unblock completion->priv->insert_text_id if it is
actually connected. While this can't happen the way GtkEntry
itself uses the completion, it's still public API and should not
blindly call functions that will spit warnings (fix taken from
maemo-gtk).
svn path=/trunk/; revision=17215
Matthias Clasen [Thu, 25 Jan 2007 14:24:53 +0000 (14:24 +0000)]
Reduce locking overhead by not repeatedly getting the paintable iface.
2007-01-25 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkwindow.c: Reduce locking overhead by not repeatedly getting
the paintable iface.
svn path=/trunk/; revision=17213
Michael Natterer [Wed, 24 Jan 2007 16:10:40 +0000 (16:10 +0000)]
revert generic disabling of PRELIGHT state for the reasons given in bug
2007-01-24 Michael Natterer <mitch@imendio.com>
* gtk/gtkwidget.c (gtk_widget_set_state): revert generic disabling
of PRELIGHT state for the reasons given in bug #135666. Widget
states are sometimes abused or otherwise used wrongly for historic
reasons, causing this part of the patch to break e.g. menu items.
svn path=/trunk/; revision=17211
Roozbeh Pournader [Wed, 24 Jan 2007 13:01:52 +0000 (13:01 +0000)]
Remove mention of no-longer-existing PATCH keyword in bugzilla. (#396899)
2007-01-24 Roozbeh Pournader <roozbeh@farsiweb.info>
* README: Remove mention of no-longer-existing PATCH
keyword in bugzilla. (#396899)
svn path=/trunk/; revision=17209
Carlos Garcia Campos [Tue, 23 Jan 2007 21:28:29 +0000 (21:28 +0000)]
Fix memory leak. Fixes bug #399907.
2007-01-23 Carlos Garcia Campos <carlosgc@gnome.org>
* gtk/gtkpagesetup.c
(gtk_page_setup_set_paper_size_and_default_margins): Fix memory leak.
Fixes bug #399907.
svn path=/trunk/; revision=17206
Priit Laes [Mon, 22 Jan 2007 22:32:09 +0000 (22:32 +0000)]
Updated Estonian translation by Ivar Smolin <okul@linux.ee>.
2007-01-23 Priit Laes <plaes@svn.gnome.org>
* et.po: Updated Estonian translation by Ivar Smolin <okul@linux.ee>.
svn path=/trunk/; revision=17203
Chris Wilson [Mon, 22 Jan 2007 15:19:53 +0000 (15:19 +0000)]
Bug 399314 – Add G_GNUC_WARN_UNUSED_RESULT to gtk_style_attach
2007-01-22 Chris Wilson <chris@chris-wilson.co.uk>
Bug 399314 – Add G_GNUC_WARN_UNUSED_RESULT to gtk_style_attach
* gtk/gtkstyle.h:
Cause gcc to issue a warning if the style returned from
gtk_style_attach is not used. Failure to update
widget->style causes some very difficult to identify bugs,
eg Bug 353498 – crash in Terminal: changing icon theme.
svn path=/trunk/; revision=17199
Matthias Clasen [Sun, 21 Jan 2007 17:27:23 +0000 (17:27 +0000)]
Fix error reporting in the gif loader
svn path=/trunk/; revision=17197
Michael David Emmel [Sat, 20 Jan 2007 07:05:55 +0000 (07:05 +0000)]
Mouse crossing fixes from Attilio
svn path=/trunk/; revision=17195
Matthias Clasen [Fri, 19 Jan 2007 15:12:58 +0000 (15:12 +0000)]
fix build breakage
svn path=/trunk/; revision=17193
Kristian Rietveld [Fri, 19 Jan 2007 10:32:42 +0000 (10:32 +0000)]
factor out add_scroll_timeout(). (taken from maemo-gtk).
2007-01-19 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreeview.c (gtk_tree_view_motion_bin_window),
(add_scroll_timeout), (gtk_tree_view_drag_motion): factor out
add_scroll_timeout(). (taken from maemo-gtk).
svn path=/trunk/; revision=17192
Matthias Clasen [Fri, 19 Jan 2007 03:52:03 +0000 (03:52 +0000)]
Fix problems with the initial focus in GtkCalendar. (#397783, Vincent
2007-01-18 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcalendar.c: Fix problems with the initial
focus in GtkCalendar. (#397783, Vincent Untz)
svn path=/trunk/; revision=17190
Robert Oegren [Fri, 19 Jan 2007 02:38:46 +0000 (02:38 +0000)]
Fix for bug #143460 - missed tablet clicks on Windows
2007-01-19 Robert Oegren <gtk@roboros.com>
Fix for bug #143460 - missed tablet clicks on Windows
* gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check):
Request absolute reporting of tablet button state, and cut down
the packet queue size a bit.
(_gdk_input_other_event): Change button state handling
accordingly. Also drop the no longer necessary code that detects
missed clicks/releases for button 1. The switch to absolute button
state should prevent missed events for all buttons. Additionally,
swap button 2 and 3.
(_gdk_input_grab_pointer): Don't reset button_state, that will only
cause a new press event as soon as the next tablet packet arrives.
svn path=/trunk/; revision=17188
Tor Lillqvist [Fri, 19 Jan 2007 02:09:57 +0000 (02:09 +0000)]
Strip some trailing blanks
svn path=/trunk/; revision=17187
Tor Lillqvist [Fri, 19 Jan 2007 01:55:52 +0000 (01:55 +0000)]
Build Wintab support always on Windows. Don't require the Wintab SDK.
2007-01-19 Tor Lillqvist <tml@novell.com>
Build Wintab support always on Windows. Don't require the Wintab
SDK.
* configure.in: Drop the --with-wintab option. Drop the
HAVE_WINTAB feature test macro and Automake variable.
* acconfig.h
* config.h.win32.in: Drop HAVE_WINTAB.
* gdk/win32/gdkevents-win32.c
* gdk/win32/gdkinput.c
* gdk/win32/gdkinput-win32.h
* gdk/win32/gdkinput-win32.c
* gdk/win32/gdkmain-win32.c: Make HAVE_WINTAB ifdef blocks
unconditional.
* gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Try
to load wintab32.dll dynamically here. If it is found look up the
handful Wintab functions we use.
(rest of file): Use these function pointers instead of calling the
functions from wntab32x.lib. The code in wntab32x.lib did the same
thing anyway: tried to load wintab32.dll, and looked up the
addresses of the actual functions from it.
* gdk/Makefile.am
* gdk/win32/Makefile.am: Drop the libwntab32x hacks.
* gdk/win32/wintab.h
* gdk/win32/pktdef.h: New files. Copied from the Wintab
SDK. Copyright blurb says: "The text and information contained in
this file may be freely used, copied, or distributed without
compensation or licensing restrictions."
* README.win32: Update a bit. Remove the text about the Wintab
SDK.
svn path=/trunk/; revision=17186
Tor Lillqvist [Fri, 19 Jan 2007 00:06:01 +0000 (00:06 +0000)]
gdk-pixbuf/Makefile.am gdk/Makefile.am gdk/win32/Makefile.am Fixes for
2007-01-18 Tor Lillqvist <tml@novell.com>
* gdk-pixbuf/Makefile.am
* gdk/Makefile.am
* gdk/win32/Makefile.am
* gtk/Makefile.am: Fixes for building outside srcdir on
Win32. (#336819, #340113) Drop distributing the handmade .la
libtool wrapper for the wntab32x library. It's too much trouble
making it work when building outside srcdir. Just link to the
library direcly using -Wl,win32/libwntab32x.a.
svn path=/trunk/; revision=17185
Michael Natterer [Thu, 18 Jan 2007 17:30:10 +0000 (17:30 +0000)]
gtk/gtkcheckbutton.c gtk/gtkdnd.c gtk/gtkentry.c gtk/gtkmenu.c
2007-01-18 Michael Natterer <mitch@imendio.com>
* gtk/gtkcheckbutton.c
* gtk/gtkdnd.c
* gtk/gtkentry.c
* gtk/gtkmenu.c
* gtk/gtktreeview.c
* gtk/gtkviewport.c: pass more clip rectangles to gtk_paint_foo()
functions. Based on a patch from maemo-gtk (bug #398023).
svn path=/trunk/; revision=17183
Gabor Kelemen [Wed, 17 Jan 2007 23:54:39 +0000 (23:54 +0000)]
Translation updated.
2007-01-18 Gabor Kelemen <kelemeng@gnome.hu>
* hu.po: Translation updated.
svn path=/trunk/; revision=17182
Michael Natterer [Wed, 17 Jan 2007 14:07:01 +0000 (14:07 +0000)]
Patch taken from maemo-gtk:
2007-01-17 Michael Natterer <mitch@imendio.com>
Patch taken from maemo-gtk:
* io-png.c (png_text_to_pixbuf_option): don't call g_convert() on
ASCII strings.
(png_info_callback): set an error when the size_func would scale
the pixbuf away completely.
svn path=/trunk/; revision=17179
Tor Lillqvist [Wed, 17 Jan 2007 13:16:01 +0000 (13:16 +0000)]
Typos.
svn path=/trunk/; revision=17177
Matthias Clasen [Wed, 17 Jan 2007 13:14:08 +0000 (13:14 +0000)]
fix the build
svn path=/trunk/; revision=17175
Tor Lillqvist [Wed, 17 Jan 2007 13:12:27 +0000 (13:12 +0000)]
Include also the COPYING file.
2007-01-17 Tor Lillqvist <tml@novell.com>
* gtk-zip.sh.in: Include also the COPYING file.
svn path=/trunk/; revision=17174
Matthias Clasen [Wed, 17 Jan 2007 06:10:08 +0000 (06:10 +0000)]
Don't use httpGetFd() when building against cups 1.1
2007-01-17 Matthias Clasen <mclasen@redhat.com>
* modules/printbackends/cups/gtkprintbackendcups.c: Don't use
httpGetFd() when building against cups 1.1
svn path=/trunk/; revision=17170
Matthias Clasen [Wed, 17 Jan 2007 04:24:00 +0000 (04:24 +0000)]
Fix memory leaks in error paths
svn path=/trunk/; revision=17165
Tor Lillqvist [Wed, 17 Jan 2007 01:25:32 +0000 (01:25 +0000)]
Improve last entry.
svn path=/trunk/; revision=17163
Tor Lillqvist [Wed, 17 Jan 2007 01:18:42 +0000 (01:18 +0000)]
Proper fix for #396175:
2007-01-17 Tor Lillqvist <tml@novell.com>
Proper fix for #396175:
* gtk/gtkimmulticontext.c: Revert change by Hans Breuer below: Do
include gtkprivate.h. On Win32 we do want to use the redefinition
of GTK_LOCALEDIR as a call to the function _gtk_get_localedir().
* gtk/gtkimmodule.c: Instead, correct the prefix also on
simple_context_info.domain_dirname. Do the prefix corrections
always on Win32, not just when GTK_LIBDIR is defined. i.e., until
now they were done only in the autoconfiscated gcc builds. Hans
needs to make sure GTK_LIBDIR and GTK_LOCALEDIR are defined also
in MSVC builds now.
(correct_localedir_prefix): New function, like
correct_libdir_prefix(), but for GTK_LOCALEDIR.
(_gtk_im_module_list): Call correct_localedir_prefix() on
simple_context_info.domain_dirname.
svn path=/trunk/; revision=17161
Matthias Clasen [Tue, 16 Jan 2007 14:17:12 +0000 (14:17 +0000)]
Queue a redraw when the grab changes. (#396470, Benjamin Berg)
2007-01-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrange.c (range_grab_remove): Queue a redraw when the
grab changes. (#396470, Benjamin Berg)
svn path=/trunk/; revision=17159
Emmanuele Bassi [Mon, 15 Jan 2007 12:44:28 +0000 (12:44 +0000)]
Ellipsize the menu items label if they grow too much. (#357303)
2007-01-15 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentchoosermenu.c: Ellipsize the menu items label
if they grow too much. (#357303)
svn path=/trunk/; revision=17156
Matthias Clasen [Mon, 15 Jan 2007 02:56:33 +0000 (02:56 +0000)]
When finding a matching non-scalable dir, keep going and look for a closer
2007-01-14 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkicontheme.c (theme_lookup_icon): When finding a matching
non-scalable dir, keep going and look for a closer match.
(#395830, Luca Ferretti)
svn path=/trunk/; revision=17153
Christian Persch [Sun, 14 Jan 2007 18:47:36 +0000 (18:47 +0000)]
Use gtk_target_table_new_from_list and gtk_target_table_free instead of
2007-01-14 Christian Persch <chpe@svn.gnome.org>
* gtk/gtkclipboard.c: (gtk_clipboard_set_text),
(gtk_clipboard_set_image): Use gtk_target_table_new_from_list and
gtk_target_table_free instead of duplicating the code. Bug #396493.
svn path=/trunk/; revision=17152
Alexander Shopov [Sun, 14 Jan 2007 17:38:06 +0000 (17:38 +0000)]
Updated Bulgarian translation by Alexander Shopov <ash@contact.bg>
2007-01-14 Alexander Shopov <ash@contact.bg>
* bg.po: Updated Bulgarian translation by
Alexander Shopov <ash@contact.bg>
svn path=/trunk/; revision=17149
Matthias Clasen [Sun, 14 Jan 2007 05:31:46 +0000 (05:31 +0000)]
Don't crash if menu or toolbar positions can't be found. (#396161, Hans
2007-01-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkuimanager.c: Don't crash if menu or toolbar
positions can't be found. (#396161, Hans Breuer)
svn path=/trunk/; revision=17147
Matthias Clasen [Sun, 14 Jan 2007 05:14:21 +0000 (05:14 +0000)]
Plug memory leaks. (#396160, Carlos Garcia Campos)
2007-01-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkselection.c (_gtk_selection_request): Plug
memory leaks. (#396160, Carlos Garcia Campos)
svn path=/trunk/; revision=17145
Matthias Clasen [Sun, 14 Jan 2007 05:00:36 +0000 (05:00 +0000)]
Link libgtk against Xfixes. (#396074, Tommi Komulainen)
2007-01-13 Matthias Clasen <mclasen@redhat.com>
* configure.in: Link libgtk against Xfixes. (#396074,
Tommi Komulainen)
svn path=/trunk/; revision=17143
Matthias Clasen [Sun, 14 Jan 2007 04:30:06 +0000 (04:30 +0000)]
Avoid a compiler warning. (#395045, Chris Wilson)
2007-01-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkradiobutton.c (gtk_radio_button_focus): Avoid
a compiler warning. (#395045, Chris Wilson)
svn path=/trunk/; revision=17141
Hans Breuer [Sat, 13 Jan 2007 22:18:06 +0000 (22:18 +0000)]
take the custom tab label from gtk_print_operation_set_custom_tab_label()
2007-01-13 Hans Breuer <hans@breuer.org>
* gtk/gtkprintoperation-win32.c : take the custom tab label from
gtk_print_operation_set_custom_tab_label() into account (bug #390746).
svn path=/trunk/; revision=17139
Hans Breuer [Sat, 13 Jan 2007 21:13:28 +0000 (21:13 +0000)]
don't include "gtkprivate.h" to avoid differing definitions of
2007-01-13 Hans Breuer <hans@breuer.org>
* gtk/gtkimmulticontext.c : don't include "gtkprivate.h" to avoid
differing definitions of GTK_LOCALEDIR (bug #396175).
* gtk/gtktreeview.c : use g_snprintf instead of snprintf, which is
not available everywhere
* gtk/makefile.msc.in : updated
svn path=/trunk/; revision=17137
Michael Natterer [Fri, 12 Jan 2007 11:56:57 +0000 (11:56 +0000)]
don't add entry->scroll_offset to entry->drag_start_y. Fixes the entry
2007-01-12 Michael Natterer <mitch@imendio.com>
* gtk/gtkentry.c (gtk_entry_button_press): don't add
entry->scroll_offset to entry->drag_start_y. Fixes the entry
starting drags after ridiculously small mouse movements.
svn path=/trunk/; revision=17134
Richard Hult [Thu, 11 Jan 2007 14:26:51 +0000 (14:26 +0000)]
Close the file after it's loaded (bug #395316).
2007-01-11 Richard Hult <richard@imendio.com>
* demos/gtk-demo/main.c: (load_file): Close the file after it's
loaded (bug #395316).
svn path=/trunk/; revision=17132
Kjartan Maraas [Thu, 11 Jan 2007 00:53:00 +0000 (00:53 +0000)]
Make a single tilde go to $HOME in the location entry. Patch from Yevgen
2007-01-11 Kjartan Maraas <kmaraas@gnome.org>
* gtk/gtkfilesystemunix.c: (expand_tilde):
Make a single tilde go to $HOME in the location entry.
Patch from Yevgen Muntyan. Closes the gtk+ part of
bug #334168.
svn path=/trunk/; revision=17130
Behdad Esfahbod [Wed, 10 Jan 2007 20:21:26 +0000 (20:21 +0000)]
Use pango_matrix_transform_rectangle(). (#340141)
2007-01-10 Behdad Esfahbod <behdad@gnome.org>
* gdk/gdkpango.c (gdk_draw_layout_with_colors):
* gtk/gtklabel.c (gtk_label_size_request):
Use pango_matrix_transform_rectangle(). (#340141)
* configure.in: Bump pango requirement to 1.15.3.
svn path=/trunk/; revision=17129
Kristian Rietveld [Wed, 10 Jan 2007 17:33:23 +0000 (17:33 +0000)]
refactor to initialize indicator_size to TOGGLE_WIDTH instead of the
2007-01-10 Kristian Rietveld <kris@imendio.com>
* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_init):
refactor to initialize indicator_size to TOGGLE_WIDTH instead
of the hardcoded value of 12.
svn path=/trunk/; revision=17128
Matthias Clasen [Wed, 10 Jan 2007 04:51:27 +0000 (04:51 +0000)]
Fix the directfb cairo test. (#394855, Josselin Mouette)
2007-01-09 Matthias Clasen <mclasen@redhat.com>
* configure.in: Fix the directfb cairo test. (#394855,
Josselin Mouette)
svn path=/trunk/; revision=17125
Alexander Shopov [Wed, 10 Jan 2007 00:00:12 +0000 (00:00 +0000)]
Updated Bulgarian translation by Alexander Shopov <ash@contact.bg>
2007-01-10 Alexander Shopov <ash@contact.bg>
* bg.po: Updated Bulgarian translation by
Alexander Shopov <ash@contact.bg>
svn path=/trunk/; revision=17124
Behdad Esfahbod [Tue, 9 Jan 2007 21:43:28 +0000 (21:43 +0000)]
Fix comment for --with-included-loaders. That option affects builds with
2007-01-09 Behdad Esfahbod <behdad@gnome.org>
* configure.in: Fix comment for --with-included-loaders. That option
affects builds with module loading enabled too.
svn path=/trunk/; revision=17123
Peter Teichman [Mon, 8 Jan 2007 18:34:06 +0000 (18:34 +0000)]
Save the expanded state of the folder browser with the file chooser
* gtk/gtkfilechooserdefault.c:
* gtk/gtkfilechooserprivate.h:
* gtk/gtkfilechoosersettings.c:
* gtk/gtkfilechoosersettings.h:
Save the expanded state of the folder browser with the file
chooser settings. Resolves the expander portions of (#153828,
Lemmit Kaplinski)
svn path=/trunk/; revision=17121
Emmanuele Bassi [Mon, 8 Jan 2007 16:47:19 +0000 (16:47 +0000)]
Don't leak the icon pixbuf after setting it to the image menu item. Found
2007-01-08 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentchoosermenu.c (gtk_recent_chooser_menu_create_item):
Don't leak the icon pixbuf after setting it to the image menu
item. Found by Paolo Borelli.
svn path=/trunk/; revision=17119
Matthias Clasen [Mon, 8 Jan 2007 15:29:02 +0000 (15:29 +0000)]
updates
svn path=/trunk/; revision=17118
Matthias Clasen [Mon, 8 Jan 2007 14:49:30 +0000 (14:49 +0000)]
Don't corrupt memory when faced with paths with ridiculously large
2007-01-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreemodel.c (gtk_tree_path_to_string): Don't
corrupt memory when faced with paths with ridiculously
large indices. Found by the GTKVTS test suite.
svn path=/trunk/; revision=17116
Matthias Clasen [Mon, 8 Jan 2007 13:08:10 +0000 (13:08 +0000)]
Set default_display_opened before loading modules. (#393102, Brian
2007-01-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmodules.c (_gtk_modules_init): Set
default_display_opened before loading modules. (#393102,
Brian Cameron)
svn path=/trunk/; revision=17114
Matthias Clasen [Mon, 8 Jan 2007 04:21:17 +0000 (04:21 +0000)]
Don't return "" as match. (fd.o #9544, Yevgen Muntyan)
2007-01-07 Matthias Clasen <mclasen@redhat.com>
* xdgmimecache.c (cache_glob_node_lookup_suffix): Don't return ""
as match. (fd.o #9544, Yevgen Muntyan)
svn path=/trunk/; revision=17112
Matthias Clasen [Mon, 8 Jan 2007 03:39:41 +0000 (03:39 +0000)]
Fix several problems with this function. (fd.o #9560, Yevgen Muntyan)
2007-01-07 Matthias Clasen <mclasen@redhat.com>
* xdgmimecache.c (_xdg_mime_cache_list_mime_parents): Fix
several problems with this function. (fd.o #9560, Yevgen Muntyan)
svn path=/trunk/; revision=17110
Matthias Clasen [Sun, 7 Jan 2007 20:04:37 +0000 (20:04 +0000)]
Correct the include for GdkPixdata. (#394000, Samuel Cormier-Iijima)
2007-01-07 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf/gdk-pixbuf-sections.txt: Correct the include
for GdkPixdata. (#394000, Samuel Cormier-Iijima)
svn path=/trunk/; revision=17108
Amanpreet Singh Alam [Sun, 7 Jan 2007 18:06:49 +0000 (18:06 +0000)]
updatingfor bug 355790 by alam
svn path=/trunk/; revision=17107
Matthias Clasen [Sun, 7 Jan 2007 07:19:07 +0000 (07:19 +0000)]
Call text_window_realize() with the correct parameters. (#393813, Yevgen
2007-01-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_set_border_window_size):
Call text_window_realize() with the correct parameters.
(#393813, Yevgen Muntyan)
svn path=/trunk/; revision=17101